package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.api.domain.RemoteParkBuilding;
import com.ruoyi.system.api.factory.RemoteLogFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 字典服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteBuildingService", value = ServiceNameConstants.OMP_PARK_SERVICE, fallbackFactory = RemoteLogFallbackFactory.class)
public interface RemoteBuildingService {
    /**
     * 根据parkCode及楼栋code查询
     *
     * @param
     * @return 结果
     */
    @PostMapping("/buiBuilding/getBuildingByCode")
    R<RemoteParkBuilding> getParkBuilding(@RequestParam(value = "parkCode", required = false) String parkCode, @RequestParam(value = "buildingCode", required = false) String buildingCode);


}
